<%@ page import="com.wuchao.service.serviceimpl.ServiceImpl" %>
<%@ page import="com.wuchao.entity.Pojo" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
table{
    margin: auto;
}span{
    font-size: 44px;
    color: red;
 }
    </style>
    <script src="../js/jquery.js"></script>
</head>
<body>
        这是网页页面 \n \t等都失效，因为底版是网页  渲染
        <% out.print("shuchu143<br/>");%>
        <%="我爱你143"%>
        <table border="3">
            <tr>
                <th>id</th>
                <th>name</th>
                <th>sex</th>
                <th>age</th>
                <th>操作</th>
            </tr>
           <%-- 分段拿值 巧妙原则--%>
            <%
                ServiceImpl service = new ServiceImpl();
                List<Pojo> list = service.findPoJo("select * from t143");
                for(Pojo xjj : list){ %>
            <tr>
                <td> <%=xjj.getId()%></td>
                <td><%=xjj.getName()%></td>
                <td><%=xjj.getSex()%></td>
                <td><%=xjj.getAge()%></td>
                <td>
                    <a href="controller.jsp?id=<%=xjj.getId()%>">删除</a> <a href="">修改</a>
                </td>
            </tr>
            <%   }
            %>

        </table>
        <span> <%=(String)request.getParameter("isDel1")==null?"":"删除成功" %></span>
        <span> <%=(String)request.getParameter("isDel2")==null?"":"删除失败" %></span>
<script>
        $("table tr:odd").css("background-color","green");

</script>

</body>
</html>
